 /**
 * 逻辑、功能相关描述: <br>
 *
 * @author 付湘辉  <br>
 * 编写日期：2008-12-24  <br>
 */
package com.ce.pms.charge.service;

import java.util.List;

import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;

import com.ce.pms.DBUnitTool;
import com.ce.pms.charge.vo.ChargeRecordVO;

/**
 * 	名称: com.ce.pms.charge.service.NonConventionalChargeServiceImplT <br>
 * 
 *
 * @author  付湘辉  <br>
 * Created on： 2008-12-24 <br>
 * @author <br>
 * update on： <br>
 * why: <br>
 */
public class NonConventionalChargeServiceImplT extends DBUnitTool {
	private INonConventionalChargeService nonConventionalChargeService;
	
	/**
	 * 功能描述:  <br>
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-12-24  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	@Ignore
	public void testAddChargeRecord() {
		try {
			this.initTransactionService();
			ChargeRecordVO chargeRecord = new ChargeRecordVO();
			chargeRecord.setBizModule("002");
			ChargeRecordVO  res = nonConventionalChargeService.addChargeRecord(chargeRecord);
			Assert.assertNotNull(res);
		} catch (Exception e) {
			super.dealException(e);
		}
	}
	
	/**
	 * 功能描述:  <br>
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-12-25  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	@Test
	public void testGetUnHandleChargeRecords() {
		try {
			this.initTransactionService();
			List<ChargeRecordVO> list = nonConventionalChargeService.getUnHandleChargeRecords(61l);
			Assert.assertNotNull(list);
		} catch (Exception e) {
			super.dealException(e);
		}
	}
	
	private void initTransactionService(){
		if (nonConventionalChargeService == null) {
			nonConventionalChargeService = (INonConventionalChargeService)applicationContext.getBean("nonConventionalChargeService");
		}
	}
}
